<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 
<div class="portlet box green">
	<div class="portlet-title">
	    <div class="caption"><i class="fa fa-cog"></i>企业管理 > 企业列表> 信用记录 </div>
		<div class="tools">
			<a href="javascript:;" class="collapse right" data-original-title="" title=""> </a>
    	</div>
    	<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			<a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body form">
	   	<form action="/credit/list?companyId=$!companyId" class="form-horizontal" method="get" id="searchForm" onsubmit="return false">
			<div class="form-body">
				<div class="row">
	                   <div class="col-md-3">
							<label class="col-md-4 control-label">类型：</label>
							<div class="col-md-8">
								<select name="creditType" class="form-control">
									<option value="">全部</option>
									<option value="ACQUIRE">获得</option>
									<option value="DEDUCT">扣除</option>
									<option value="EMPLOY">使用</option>
									<option value="BACK">退还</option>
									<option value="ADD">手动添加</option>
									<option value="REDUCE">手动减少</option>
									<option value="SETTING">重新设置</option>
								</select>
							</div>
						</div>
	                	
	                	<label class="control-label col-md-1">详细说明：</label>
	                	<div class="col-md-2">
	                	    <input type="hidden" value="$!id" name="id">
	                    	<input type="text" class="form-control"  name= "particular" value="$!particular"/>
	                   </div>
					
					
						<div class="col-md-4">
							<label class="col-md-3 control-label">相关时间：</label>
							<div class="col-md-4">
						    	<input type="text" class="form-control" readOnly id="startTime" name="startTime" value="$!startTime">
						    	<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</div>
							<div class="col-md-1">~</div>
							<div class="col-md-4">
						    	<input type="text" class="form-control"readOnly id="endTime" name="endTime" value="$!endTime">
						    	<i class="fa fa-calendar" style="position: absolute;right: 10px;top: 10px"></i>
							</div>	
	    		        </div>
	    		</div>     	
			</div>
		</form>
	</div>
</div>

<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
    </div>
    <div class="portlet-body">
    	<div class="dataTables_wrapper no-footer">
    	<div class="tabbable-line ">
			  <ul class="nav nav-tabs">
	            <li>
	            <a href="/details/list?id=$!companyId" class="ajaxify" data-toggle="tab" aria-expanded="true"><font style="vertical-align: inherit;"><font
				   style="vertical-align: inherit;"> 基本信息 </font></font></a></li>
	            <li  class="">
	            <a href="/order/company?memberId=$!companyId" class="ajaxify" data-toggle="tab"  aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 订单记录 </font></font></a></li>
	            <li class="">
	            <a href="/protocol/list?companyId=$!companyId" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 报价记录 </font></font></a></li>
				<li class="active">
	            <a href="/credit/list?companyId=$!companyId" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				   style="vertical-align: inherit;"> 信用记录 </font></font></a></li>
	            <li class="">
	            <a href="/account/list?companyId=$!companyId" class="ajaxify" data-toggle="tab"  aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 开票记录 </font></font></a></li>
	            <li class="">
	            <a href="/staff/list?companyId=$!companyId" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 员工记录 </font></font></a></li>    
           		<li class="">
            	<a href="/companyBill/list?companyId=$!companyId" class="ajaxify" data-toggle="tab" aria-expanded="false"><font style="vertical-align: inherit;"><font
				    style="vertical-align: inherit;"> 账单记录 </font></font></a></li>    
            </ul>
		     </div>
		     <span></span>
		     <span></span>
			<div class="table-scrollable">
			    <table class="table table-striped table-bordered table-hover">
				  	<thead>
						<tr>
		   		 			<th>相关时间</th>
		   		 			<th>类型</th>
		   		 			<th>金额</th>
		   		 			<th>余额</th>
		   		 			<th>详细说明</th>
						</tr>
					</thead>
					<tbody>
					#foreach($!item in $!pageCredit.result)
		  				<tr>  
						    <td>$!item.correlationTime</td>
						   
						    <td>$!item.creditType.name</td>
						    <!-- 金额  (信用变化) -->
						     #if($!item.creditType.name=="获得余额" ||$!item.creditType.name=="退还余额" ||$!item.creditType.name=="手动添加额度" ||$!item.creditType.name=="重新设置")
						     <td>+$!item.creditOver</td>
						       #else
 						      <td>-$!item.creditOver</td>
 						     #end
 						     <!-- 余额 --> 
 							 <td>$!item.creditOver</td>
 						    
						   
						    <td>$!item.particular</td>  			
		  				</tr>
		  		    #end
					</tbody>
				</table>
			</div>
			#set($page=$pageCredit)
			#set($pageUrl="/credit/list?queryString&pageNo=")
			#parse("_page.htm")
		</div>
    </div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>
<script type="text/javascript">
$("input[name= particular]").focus();
</script>
